Changed caught_signal format and print current total when it receives SIGHUP.