Do not call exit at the end, as it prevents destructors from running.