Fixed crash when disposing CsvProvider instances (closed #661)