can close the window of an event's target