Fixed protocol implementation (clients do not send any disconnect packets).
Added offline-mode capability.
Added support for offline-mode.