Close pageManager before closing pages used for sync
no need to close pages, as the page manager should manage them
Removed some synchronized blocks
avoiding NPE on RA
Fixing tests that were eventually failing