Close Ctrl+k window with Esc shows error message