Adding close method to lpclient