Merge pull request #860 from clebertsuconic/master

HORNETQ-1137 and a test fix
Close pageManager before closing pages used for sync
no need to close pages, as the page manager should manage them
sync all pages we have before closing the pagemanager
clarify need for stopping replicationEndpoint