exit if pkg_add is unsuccessful