Add error handling in CPT scripts