They accelerate upwards and their bubbling metabolism will compensate. If any creatures on the surface die from inhalation of the fart then the whales become awake and feed on them immediately. Slumber resumed. It's like a background clean-up process.
But seriously, this must happen sometimes!