Drain the eventQueue on server shutdown

to prevent executor threads from waiting forever for a response that will never arrive.