Call cleanup() before exit() on one-shot runs.