The chat window in Gmail should have an option in which a user can disable it. At times you don't want to be known by your friends that you're online. It would be very unproductive when your chat box suddenly pops up because a friends wants to chat with you and you can't turn him or her down.
offline" setting of some kind might be handy.