fixed crash when trying to send replies back to disconnected client