import contextlib
import io
import os
import socketserver
import string
import sys
import threading
import time
import queue

import win32all

# int(md5.md5('ibb').hexdigest()[-4:], 16)
IBB_PORT = 26830

class StopServer(Exception):
    pass

class CommandHandler:
    def __init__(self):
        self.systems = {}
    
    def handle(self, cwd, args, wfile):
        if '--stop' in args: