Code

properly call close() on the ssh connection before exiting.