Pattern
Resource Close Exception Handling
implicit-close-exception-handling
Implicit close() invocations in try-with-resources can throw checked or runtime exceptions, so missing or incorrect handling either fails compilation or masks failures, while related fail-fast exits (process.exit) can silently terminate boot and hide the underlying cause.