Recovery of used refining agents