Shutdown kernel when seting up a new one