Handle an 'offline' event. Fixes #76.
Merge pull request #77 from xmpp-ftw/issues/76

Handle an 'offline' event. Fixes #76.