HIVE-2619 Add hook to run in metastore's endFunction which can collect more fb303 counters (Kevin Wilfong via namit)