Add config option to disable exiting when escape is hit.
Merge pull request #1537 from matham/no_esc_exit

Add config option to disable exiting when escape is hit.