main example cleanup