yes, but has command has been executed, mon_secret has been created.

If chef run fail, mon_secret will not be saved and chef will try to regenerate another mon_secret