Release references to unused messages in the pipeline.