Clean up as much as possible.