Exactly. Fix the problem, then ask for permission to do so afterwards.
If you can honestly say, "we fixed the problem and didn't hurt anything with our temporary fix" then the permission people who come along afterwards to fine you are going to have to think seriously about suspending the fine that your solution drew. Don't do anything criminal, but accrue a bit of civil liability: it will either be a cost of business, or will be forgiven.
As for contracts: If I am obligated to return the containers, but I dump them for a few weeks on a disused airstrip, I'm still going to, eventually, fulfill my contract, when the port allows me to.
No excuses. Fix problems, don't brainstorm reasons not to fix then.