Adds naive check for network connection
Merge pull request #16 from ataulm/fix_no_network_crash

Adds naive check for network connection

fixes #11