Odds are your device is drawing too much power and tripping the internal circuit breaker on the outlet. That's also why the USB plug only gave it enough juice to keep running rather than to also charge.
As for the mid-flight thing, I believe there are groups of outlets on the same circuit in addition to individual overload protection so the issue may have been related to you and your fellow passengers together all drawing too much power.