Now the checkpoint file is not deleted if notifyTerminated raises an error.
Editing second part of the tutorial.