Fix problem where repmgrd does not stop on service stop.