Thermal runaway hazard in batch processes for the production of brominated epoxy resins