Prevent network errors from throwing uncatchable exception

To reproduce the issue, try to push a notification on a URL with unresolvable domain.