how to shut down machine automatically when the program ends?

thanks for help