Clear the queue properly