Use /quit to leave a server without leaving the entire main client, though it does leave widgets. The quitting of the server also removes all the open tabs from that server except for the server tab.
/quit has an optional parameter for giving a reason. To use it, use /quit your reason here.
If the optional parameter is not given, the Mibbit client gives a default of http://www.mibbit.com ajax IRC Client