Make sure the ssh connection is properly closed after the session.