Clean up various things.