try to output timings and memusage on exceptions too