[#29916] MySQL connections are not closed (Fix #948)