So apparently Firebase has disconnect handling

Which makes my struggles with the window unload event both irrelevant
and silly.
Figured out the source of the weird white pieces disappearing bug.