Fix false-positive restart signals by opening MySQL conn on check.