Unload the cuda module in the CudaKernelManager destructor.