[CloseEvent] fixed closing window

Return NULL if select camera window is closed with "X" button