Capture output and execution time even if script fails #8