The code in a block labeled END is automatically run when the program finishes.
BEGIN {puts "Hi "} puts "there " END {puts "sweetie."}