Categorize remote task errors

This includes http 500 from workers, which is frequently returned if
they're in the process of shutting down.
Suppress exceptions closing record reader when handling an exception