Cover connection errors (ns_connect and ns_bind)