Fixed the problem with btrees closed eagerly.