[REM3-183] Avoid hang when closeable resources completely fail; try to exit cleanly regardless