OSX: CFRunLoopRunInMode() makes sure event handlers are called