function drainQueue() {
		runHandlers(handlerQueue);
		handlerQueue = [];
	}
Drain the handler queue entirely, being careful to allow the
queue to be extended while it is being processed, and to continue
processing until it is truly empty.