Changed doExit() as void.