I haven't seen this posted yet and I expect some people to already know it, but I decided I might as well post it.
Step 1: type "/afk \n" without the ""
Result: You are dc'ed to the login screen instantly.
Why: I really dunno but it's still better than doing Alt + F4 then having to restart the game, especially if your comp is wooden.