Text this: Dynamic behaviour and energy dissipation of offline air pockets in transient pipe flows