Properly write panic to the queue