Freight invoice audit and payment

Who pays demurrage when a container cannot be collected?