Do you really want to stop the `cmsRun` execution for a NULL pointer instead of simply exiting the function?