The refinery had been shut down since July 29 as a result of a fire that damaged its isomerization unit and distributive controls system.