[server][HatoholThreadBase] Add a mechanism for the exit.