Merge pull request #3 from matthewhampton/hooking_in_to_j5

Add an option to do the wait for termination after sending the stop commands