Added NetworkUtil; added basic error handling in the ErrorListener