def cleanup(): unregisterPid(os.getpid())
def OnExit(self): """Clean up on exit""" unregisterPid(os.getpid()) return super().OnExit()