[Kernel] ensure session is saved before sending response