simplify close output