clean exit for cordy
clean exit for listy