Fixed issue in client with idle switch
Fixed issue in client with idle switch
Fixed issue in client with idle switch
Simplified server side and cleaned up resource management