Close InProcessPages database and then close berkley database.
Add more logging.