Also added a try/catch construction to catch errors generated registerImportOperation hook