When evented I/O is being used, prevent event loop from terminating at least until main() has returned.