beeps when window close