Utilization of spent detergent solutions and lubricating cooling liquids