callback function on ssh connection closed