Trying to save sftp client state so the connection isn't closed and don't keep receiving EOFERROR