Improved data reader error handling.