Cleanup and sanity.