Avoid async error handling breaking XSetInputFocus.