rename -exit-on-print to -exit-when-done and make -stress-test use it (useful for profiling)