Update automation script to re-raise exceptions in order to have a non-zero exit code

Updated patch from bug 853005 for Mozmill 2.0