class ListenForConn(Process):

    def run(self):
        listener = Listener('/tmp/asdf', 'AF_UNIX')
listener.accept()
listen_process = ListenForConn()
listen_process.start()
print(listen_process.is_alive())
listen_process.terminate()
listen_process.join()
print(listen_process.is_alive())
print('No more listen process.')
Proper way of cancelling accept and closing a Python processing/multiprocessing Listener connection