Window close handler is working.