Adding error callbacks for moz