output close fixes