Added connection status checking.
If there is no Internet, application wouldn't run, otherwise everything will run normaly.