close output