'Register a function to be called when from the child process
just before the child process terminates (joins to the parent).'

@classmethod
def register_join_hook(cls, hook):

    cls.join_hooks.append(hook)
