'Restart the process (may close connections).
This method does not restart the process from the calling thread;
instead, it stops the bus and asks the main thread to call execv.'

def restart(self):

    self.execv = True
    self.exit()
