Rotating machine and transformer cooling