catching errs in runFirefox