quic: fix passive disconnect handling & refactor