Added closeClient mehod in deviceclient