please review ticket#271 - Slow shutdown when you have 100+ replication agreements