Proper exit code for puppetresources