Set the sftp object to None after closing the channel