'Whether the Session has completely shutdown, i.e., its internal
threads are finished and it is safe to quit the process the Session
is running in.
:return: a boolean.'

def has_shutdown(self):

    return self.lm.sessdoneflag.isSet()
