fix (bug 42272)

fix
by
VG
(fixes bug 42272)

:

Clear Paged and BTree cache on close.
Thanks to Natalia Shilenkova.