if exception occured, when script saved