Chunk server: fix invalid response error handling in remote sync state machine by closing connection before invoking error handler and returning immediately after error handler invocation, in order to resolve possible ambiguity with ssl shutdown.