Adding logic to make sure that upon reconnection after a transient loss of connectivity,
the same app is running otherwise disconnect.