support for exit with ESC