Add some logging for program termination

Signed-off-by: Jeff Horn <jhorn@reachtech.com>