It is necessary to ensure that the animal stops associating the doorbell with the appearance of a stranger.