Exception handling for the registry