There have been a few requests for better treatment of resource release. While a full-blown treatment (e.g., .onException() handlers) is not in the cards here, one of my team is working on a CloseableStream (implements Stream and Closeable) and using this for various IO usages, and this seems promising for this limited use area.