Add error catching for no interent connection. Displays a dialog.