gajim takes much time to detect internet connection lost
When I've Gajim running and disconnect from internet, Gajim still shows my buddies as online. Furthermore, I can send messages to them without getting error messages.
Usually, it takes around 10 minutes until gajim detects that internet connection is lost.