title: (Spring batch) Pollable channel with replies contains ChunkResponses even if JOB is succefully completed
body: <p>I have following chunk writer configuration with getting the replies from spring batch remote chunking:</p>
  
  <pre><code>    &lt;bean id="chunkWriter" class="org.springframework.batch.integration.chunk.ChunkMessageChannelItemWriter" scope="step"&gt;
      &lt;property name="messagingOperations" ref="messagingGateway" /&gt;
      &lt;property name="replyChannel" ref="masterChunkReplies" /&gt;
      &lt;property name="throttleLimit" value="5" /&gt;
      &lt;property name="maxWaitTimeouts" value="30000" /&gt;
  &lt;/bean&gt;
  
   &lt;bean id="messagingGateway" class="org.springframework.integration.core.MessagingTemplate"&gt;
      &lt;property name="defaultChannel" ref="masterChunkRequests" /&gt;
      &lt;property name="receiveTimeout" value="2000" /&gt;
  &lt;/bean&gt;
  
  &lt;!-- Remote Chunking Replies From Slave --&gt;
  &lt;jms:inbound-channel-adapter id="masterJMSReplies"
                               destination="remoteChunkingRepliesQueue"
                               connection-factory="remoteChunkingConnectionFactory"
                               channel="masterChunkReplies"&gt;
      &lt;int:poller fixed-delay="10" /&gt;
  &lt;/jms:inbound-channel-adapter&gt;
  
  &lt;int:channel id="masterChunkReplies"&gt;
      &lt;int:queue /&gt;
      &lt;int:interceptors&gt;
          &lt;int:wire-tap channel="loggingChannel"/&gt;
      &lt;/int:interceptors&gt;
  &lt;/int:channel&gt;
  </code></pre>
  
  <p>My remotely chunked step is running perfectly, all data are processed with very good performance, all steps ends in COMPLETED state. But problem is that masterChunkReplies queue channel contains ChunkResponses after end of the job. Documentation doesn't say anything about it, is that normal state?</p>
  
  <p>Problem is that I can't run a new job then, because it then crashes at:</p>
  
  <pre><code>Message contained wrong job instance id ["
                  + jobInstanceId + "] should have been [" + localState.getJobId() + "]."
  </code></pre>
  
  <p>There is a simple workaround, cleaning the masterChunkReplies queue channel at the start of the job, but I'm not sure if it is correct...</p>
  
  <p>Can you please clarify this?</p>