[RFC] Transform global variable really_exiting into static.

Transform global variable really_exiting into static and some minor style changes.

Comments are welcome.
Oh wow, I didn't realize the comments were *below* the symbols. My mistake.