debug, engines: add some debugging messages and fix one place where the parent checkin was not done on finish