Added clear_queue function to QueuedClient