Added support for when Internet Connection gets lost while the App is running
syntax fix