def _close(self, test=False):
        try:
            self._on_close()
        except Exception as e:
            logging.exception(
                'Exception raised when calling _on_close: %s' % e
            )
        finally:
            logging.debug('Closing response data object')
            if self._response_data:
                self._response_data.close()
            logging.debug('Closing socket')
            self._listener.close()
            logging.debug('Dying.')
            if test is False:
                sys.exit(0)
Wrapper around `_on_close`. Its duty is to perform the necessary
dataset/ETHPy150Open facebook/fbtftp/fbtftp/base_handler.py/BaseHandler._close