handle cancelling password dialog