Check internet connection on application startup