Fix test
Save only flow PID in session state (fixes pattern matching on DOWN message). Improve robustness handling gen_tcp operations.