'Close SyncListenServer thread.
Close all open connection with clients and listen server.'

def close(self):

    utils.signal_pid(self.server_pid, signal.SIGTERM)
    if utils.pid_is_alive(self.server_pid):
        parallel.fork_waitfor_timed(self.tmpdir.name, self.server_pid, (2 * _DEFAULT_TIMEOUT))
    self.tmpdir.clean()
    logging.debug('SyncListenServer    was    killed.')
