Small modification for debug purpose

Problem when _queue is cleared -> smartpointer are released