Added auto close message upon exit