Update QueryServer.java
New: Send message by closing connection