Pressing esc closes dialog. Fixes #35.