replace polling logic with process.wait()
kill it with fire
Revert "kill it with fire"

This reverts commit e92bcbc12986eb6c3d2d39b1d4813a300493e858.
Merge branch 'terminate2' into getsamsa_master