dump: flush packets immediately

Fixes #29