code: def do_quit(self, _):
          '''Override do_quit for network clean up.'''
          if (self.server.is_server_running() == 'yes' or
                  self.server.is_server_running() == 'maybe'):
              user_input = raw_input("Quitting shell will shut down experiment "
                                      "server. Really quit? y or n: ")
              if user_input == 'y':
                  self.server_off()
              else:
                  return False
          return Truf do_quit(self, _):
          '''Override do_quit for network clean up.'''
          if (self.server.is_server_running() == 'yes' or
                  self.server.is_server_running() == 'maybe'):
              user_input = raw_input("Quitting shell will shut down experiment "
                                      "server. Really quit? y or n: ")
              if user_input == 'y':
                  self.server_off()
              else:
                  return False
          return True
docs: Override do_quit for network clean up.