Terminate workflow how to use

Please check: How to stop execution of the program, but without Exception message? - #9 by Manish_Pandey