Add Listener java.io.Closeable implementation

Enables `with-open`, etc.