close app when no internet connection on first run