## 3.3. Closing Worlds and Exiting KildClient

When you are disconnected from a World (either because you requested it, with the `quit` command or something similar, or because the server has gone down), you will see a dialog box from which you can choose from four options: Reconnect will attempt to reconnect to the same World (using the same character for auto-login, if there is more than one defined, see Section 4.1, “General”). Connect to another world will open the World Selection dialog (see Section 3.1, “Connecting to a MUD”) for you to choose another World to connect to. Offline will keep the world open so that you still see its output or execute some things with Perl. Finally, Close will close the tab for that World. If that was the only open World, KildClient will exit when you press Close.

You can force disconnection from a World with the World → Disconnect menu. Note that this is not the recommended way to leave a MUD, but it might be necessary in other cases. The same dialog with the three options will be shown.

If you choose World → Close from the menu, the current World will be forcedly disconnected and automatically closed (just as if you had selected Close from the dialog). If this is the only open World, KildClient will be exited.

To close all open Worlds and exit KildClient immediately, select World → Quit from the menu.

These operations can also be run with Perl. To disconnect from a World, use the `$world->dc` (that is, type `/$world->dc` in the command box). To close the World, use `$world->close`. And to quit KildClient closing all Worlds, use `quit` (type `/quit`, as you might imagine). The reason `quit` does not have `$world->` in front will be explained in Section 7.1, “The Basics”, but for now suffices to say that since it operates on all Worlds (and not in one specific one), it does not have that.