James Hawkins : msi: Free the cached streams when closing the database.