exit with accurate return code from chef-client