Clean up AppKernel