close on escape

closes #2