Makes Commands impl AutoCloseable