Use session.delete rather than kernel.kill