disable hard exit on esc