Better solution to only rmtree when orig process exits.