perf mem: Fill in the missing session freeing after an error occurs