Handling the AlreadyExists error