Terminal extends Closeable