C++ify bool. Fix exit crashes.