actually exit with the right status