Various

Two features included:

1) `loader.failed` now always shows the load records for any load failures (useful for debugging).
2) A test case for a rare race condition that affects error handling (not loading).