Add periodical cleanup of closed connections.