New script error callback