How to leave a server in TF2
Type disconnect in your game console to leave the current server and go back to the main menu.
disconnect
Leaves the current server and returns to the main menu.
disconnect Examples
disconnect Leave the server.
What it does
Run on a dedicated server console it ends the session.
The game's own description: Disconnect game from server.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to tf/cfg/server.cfg. New to this? Start a TF2 server first.
Your own
TF2 server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.