How to automatically remove a contact after a certain number of attempts?