Android: Handle disconnection

It's crashing right after rebuilding the GUI, I suspect this is a bug somewhere else.