nvmlShutdown in a signal handler

When our application receives a SIGINT, we try to clean up by calling nvmlShutdown, but this appears to cause a deadlock if the signal is received inside the NVML API. Is it safe to not call nvmlShutdown in this case, if we are about to exit anyway?