Move error alert box to show in main ui dialog.
Merge branch 'Fixes'
set stopLoading from ui thread.
don't immediately close application when the internet connection is lost.