Limit error handler to only EOF.