close the replication manager as well