Fixed issue #3037 by closing socket

Conflicts:

server/src/main/java/com/orientechnologies/orient/server/distributed/ODi
stributedResponseManager.java