print diagnostics when program exits with failure