Adding offline status: sync disconnect on unload