Running from separate main, cleanup.