Fixed exit-via-Esc bug.