Fix memory leak report resulting from directly calling exit(0);