Fixed ESC on exit.