When I’m closing the app the connection keeps alive for 15-20 seconds. Which is normal, I assume. But some connections keep alive longer. For example, I have 18 now in my Atlas without any connected clients (except the checking script).
I’m using pymongo as a driver on the client side.