I lost most of my work because half the Australian refineries closed down. :-(
They shut down because all the operators/ owners were foreign owned and could import the stuff (i.e. Singapore) cheaper than the production cost here. It's all about profit and they couldn't give a rats arse about Australia's strategic capability or self reliance in times of crisis.....
Storage (tankage) is also an issue. If you have a tank full of 3 million litres of off spec product sitting idle you can run short on places to pump fresh output from the refinery (ExxonMobil Altona still produces JetA1)....
Usually (always) product is tested to ensure it's on spec before it's discharged from ship to shore...