Filter out some extraneous stuff from error messages. Fixed bug that crashed when no network connection exists.