Wip/network errors

Resolves https://github.com/cockpit-project/cockpit/issues/88