sleep 5 seconds if the queue is empty