'Overrides `serve_forever` to shut the threadpool down cleanly.'

def serve_forever(self):

    try:
        while self.running:
            try:
                self.handle_request()
            except socket.timeout:
                pass
    finally:
        self.thread_pool.shutdown()
