Added halt on error support for scripts importing