def close(self):

        if self.socket:
            if __debug__: log.debug('CLOSE')
            self.io.remove_handler(self.socket.fileno())
            self.socket.close()
            self.socket = None
            self._close_callback and self._close_callback()
        return self
Scenario: Successfully exporting a dataset:
dataset/ETHPy150Open HenryHu/pybbs/xmpp/readstream.py/ReadStream.close--crossover with--dataset/ETHPy150Open bigmlcom/python/bigml/tests/test_15_download_dataset.py/TestDownloadDataset.test_scenario1