try catch sur registry creation