Fix call of exceptions in shares client
Refactor usage of isolated creds and its resources