try to detect net close