Improve error handling when subscribing to queue.