auto close compilation window