Add missing code for closing the pageCache when used in migration/tools
Merge pull request #3052 from davidegrohmann/2.2-close-page-cache

Add missing code for closing the pageCache when used in migration/tools