added exit codes for puppet apply