terminate script execution in case of failure