FlushBuffer() is important, otherwise one can't detect remotely closed connection