XRecordKeyboardMonitor: fix error handling again