Close dialogs on Esc-press