android: Fix disconnection handling

Do not throw an exception in the destructor.