Fixed bug with ssh bad termination.