cleanup, trying to capture edge cases where the phone loses connection and fails, app freezes in these situations