Cleanup on the Kernel.