Fix CMAKE build
A few more debug messages
Finalize the object, even if we're not executing it.