exit cleanly in finishing_cleanup instead