Removed an empty error handler and filled one out to handle a read error.