'The business came close to collapsing,' judge says.