'Inform the process monitor that registrations are complete.
After the registrations_complete flag is set, process monitor
will exit if there are no processes left to monitor.'

def registrations_complete(self):

    self._registrations_complete = True
