Handling contaminated scripts