Add the ability to automatically close the app on device disconnection if it was opened automatically opened on device connection