Replace return by exit.