Properly clear the ServiceRegistry cache