The report helper already returns the parsed result, but it never closes the handle it opens, not even on success. Refactor read_report(path, opener, parse) so the helper always releases the handle it opens.
Preserve the return value and callback contracts: call opener(path) once, read the returned handle once, and pass that text to parse once. Close that handle exactly once on success, read failure, or parse failure, propagating the original read/parse exception. If opening fails, propagate it without attempting to close an unacquired handle. Do not call parse after a read failure. The injected handle provides read(), close(), and ordinary context-manager support (enter returns itself; exit closes without suppressing exceptions). close() does not raise. Do not change the signature or use a global opener.