Fix crash when disconnecting BT