catch KeyboardInterrupt in serve_forever