Call CFRunLoopRunInMode() to clean up the event loop.

Prevents the kernel from filling up its buffer and logging error messages. It'd be nice to turn this off entirely, since we don't use it.