Added implicit wrapping of AutoCloseable; specified value type in transaction implementation.