Cache exceptions in run_once and make sure to reraise them.