Add completed flag to certificate generator
Set flag when generation is complete
Check generator flag is set to complete