Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods.
Issue #21310: Fixed possible resource leak in failed open().