IMO it should be illegal. If they're able to kill themselves, that's fine, but straight up surrendering should be forbidden. But like just about any other rule, it could be abused. Obviously, you can tell someone surrendered via F12 or alt+f4, but some people might be desperate enough to pull the network cable out and that's impossible to prove.