The fine line between debt restructuring and bankruptcy proceedings