code: def __unhook_dll(self, event):
          
          debug = event.debug
          pid   = event.get_pid()
          for hook_api_stub in self.__get_hooks_for_dll(event):
              hook_api_stub.unhook(debug, pid)
docs: Unhook the requested API calls (in self.apiHooks).
  
          This method is called automatically whenever a DLL is unloaded.