Clearing catalog factories when registry is destroyed