Better fix for terminating when SSH finishes.

Does not run SSH command asynchronously, so produces better logs.
Revert change to ssh command to run correctly.