do not output timings if throwing exception

TimerOutput now no longer produces useless output if an exception is
thrown. (done with @jdannberg).

I think it is reasonable because most exceptions happen at the beginning and this makes finding the problem much easier.