made sure to check if errors exist before stopping the script .