Use firefox extension for gmail chat instead of webchat available with gmail. After installing the gtalk sidebar firefox extension add a button on the tool bar as below.
Drag drop the button to tool bar. The new icon will open the gmail chat as a sidebar. If we close the sidebar we will automatically signed off. The gadget can open multiple tab for individual chat in the client, overall cool extension.
Don’t be baulked to try this extension.