Added halt on error support for scripts importing

I added support for use halt on error flag in import scripts phase.