CommandContainer now extends AutoCloseable