$SIG{KILL} = sub { print "This is my signal handling code. Log messages here.\n"; };