feat: ensure that the queue is cleared