Check if puppet is running before raise error