add setting to disable exit on escape

Setting to control `exit_on_escape`; defaults to false.

Closes #39.