Fixed bug where not being connected to the internet would cause a crash, and added appropriate messagse.