Fix rowset cache closing itself strangely