Clean up the solution