handle network timeouts, fixes #12