cleanup with an exit.