Adding some logic to handle the cases when Bluetooth connection is lost during sync (either because Bluetooth is disabled on the mobile device or because the remote device does not respond)