exitAndClear