M0 cluster connection still raise although i closed connection after function completed

the number of connections is still increasing on production non stop even though in the code I closed all connections after the function completes. I tested the api with stdio3T and it works perfectly according to my code. So why connection still increasing? Anyone have solution ?