in reply to exec with cleanup
If you are not on windows, you can fork, exit cleanly in one process, and exec in the other.