remove client.close in code