fix infinit loop when OPDSCatalog is created without onExit definded