close virtual keyboard when the password dialog is closing