Free allocated memory of a connection after a random amount of requests
handled.