misc: Move the ExitLogger class definition into misc.cc