Decouple session with network stream