fix the listening port issue
- the listening port does not release when device disconnect
enhance device counter