Make sure we exit cleanly.
Cleanup.