Add methods to clear the send and receive queues.