close was firing multiple times