exit on failure to open script