Added proper error answer and modified END mark to work with java client
Fixed issue #1: socket.error: [Errno 98] Address already in use