I have an automated process using paramiko and have this error:
Exception in thread Thread-1 (most likely raised during interpreter
shutdown)
....
....
<
Close your connections in the normal program control flow, not in __del__, as @THC4k said, it's not a deconstructor, and in general, you shouldn't need to use __del__ (of course there are exceptions).
If you're creating your own threads, you need to .setDaemon(True) if you want them to exit normally when the main thread exits.