Added error for no network connection.

r?