Fixes #1295 to verify puppet certificate before attempting to clean