EventQueueWork used to keep EventQueue alive when there are no events to handle.
class EventQueueWork