network: fixed connection replacement & close detection