Adds QueueErrorHandler to correctly log uncaught exceptions from the queue.