Updated to delete the entire retry queue when we are done with it