Fix #642; Trap exception when loading a script via importScript.	

Fix #642; Trap exception when loading a script via importScript.