Add basic exception handling for registry write-access