Cleaning up AppKernel