Do a bunch of kernel cleanup