fixed window close - press esc