Fixed network stats handling. The UI now reports network errors.