Cleanup FunctionRegistry