Bug 976174 - Better failure message in switch_to_keyboard() and dismiss()