Added cleanup function for kernels to allow for verification after kernel runs.  This will (hopefully) check the optimized version of the kernels, whereas the initial check only checks the unoptimized version