Fix for issue #60 (files locked because the streamreader is not closed)