Exception handling to make individual scripts run