cleanup kernel