Don't ignore the return from the forced checkpoint.
No need to test "ret == 0" at an error label, move the code to precede
the error label.