feat: add handling of exceptions in providers, return nil in case of it