I also noticed similar problem when closing opencv application with SIG_TERM, but it was only happening after some problematic OTA upgrade from L4T R32.3.1 to R32.4.2…took some time to auto clean up but seems fixed now.
I used a solution that @Andrey1984 shared here for this case in C++… If it persists, you may try to translate and test with python.