Add some error handling around the queue's parsing