Catch errors leaving a queue