You don't even need to throw the userspace away. You can update the kernel, hibernate and choose the new kernel on boot. No need to close anything.