Both the adb and ssh implementations should - try to reconnect if it is possible - offer a callback that notify the user (aka app-lab) that the connection isn't available anymore