remove more unreached code, declare more things as R_NORETURN.