Fix potential SQLRead shutdown error.