How to avoid power failure in refinery