This recipe demonstrates the new structure.GetCuts call, which lists open cutpoints.
The recipe prints each open cutpoint, then calls structure.DeleteCut to close it.
There's no indication of success or failure from structure.DeleteCut, so the recipe calls structure.GetCuts to see if any cuts remain open.
The structure.GetCuts call itself seems fine, but structure.DeleteCut will close any cutpoint, even where the ends are too far apart to close manually. You'll end up with a funny-looking protein and two segments with bad ideality subscores.