refactor mysql OnTerm hook into its own function
refactor mysql OnTerm hook into its own function

davygeek/vitess,tinyspeck/vitess,sougou/vitess,dcadevil/vitess,tirsen/vitess,davygeek/vitess,mahak/vitess,alainjobart/vitess,enisoc/vitess,mahak/vitess,tirsen/vitess,tinyspeck/vitess,mattharden/vitess,vitessio/vitess,mattharden/vitess,davygeek/vitess,mahak/vitess,tinyspeck/vitess,mahak/vitess,vitessio/vitess,HubSpot/vitess,sougou/vitess,mahak/vitess,tirsen/vitess,dcadevil/vitess,sougou/vitess,HubSpot/vitess,mattharden/vitess,vitessio/vitess,alainjobart/vitess,mattharden/vitess,vitessio/vitess,HubSpot/vitess,tirsen/vitess,dcadevil/vitess,tinyspeck/vitess,vitessio/vitess,enisoc/vitess,tirsen/vitess,vitessio/vitess,dcadevil/vitess,vitessio/vitess,mattharden/vitess,vitessio/vitess,enisoc/vitess,tirsen/vitess,enisoc/vitess,enisoc/vitess,tinyspeck/vitess,tinyspeck/vitess,mahak/vitess,davygeek/vitess,tirsen/vitess,HubSpot/vitess,davygeek/vitess,mattharden/vitess,HubSpot/vitess,mahak/vitess,HubSpot/vitess,tirsen/vitess,tirsen/vitess,mattharden/vitess,HubSpot/vitess,sougou/vitess,sougou/vitess,mattharden/vitess,alainjobart/vitess,davygeek/vitess,mattharden/vitess,davygeek/vitess,sougou/vitess,HubSpot/vitess,enisoc/vitess,sougou/vitess,alainjobart/vitess,mattharden/vitess,dcadevil/vitess,mahak/vitess,dcadevil/vitess,enisoc/vitess,dcadevil/vitess,tinyspeck/vitess,alainjobart/vitess,sougou/vitess,alainjobart/vitess,alainjobart/vitess,alainjobart/vitess