closing pages in ReplicationEndpoint.close()