Fix exception namespace in script handler