#53 StateWrapper must extend AutoCloseable