Fixes #295 Set _closed regardless of whether close() succeeds
Fixes #295 use an error callback to capture errors from the loader.
Fixes #296 prevent a double-close on the ydb loader on error.