Fix on KeyboardInterrupt for Windows