pub const cudaErrorCudartUnloading: cudaError = 4;
This indicates that a CUDA Runtime API call cannot be executed because it is being called during process shut down, at a point in time after CUDA driver has been unloaded.