title: SpringXD Job is still executing even after forceful Server shutdown
body: <p>I'm trying to run a Job on SpringXD and the job has 7 steps, When I reach step 4 i'm shutting down the XD server. When I look into the Metadata of SpringXD I'm saving on OracleDB. I see that the Step 4 is in executing status and it will never change to failed. After restarting the server, I still see that the status of the Job is still executing and it never gets finished. If I launch the job it create a new job and the new one gets finished.</p>
  
  <p>My config.xml for jdbc:</p>
  
  <pre><code>    &lt;jdbc:initialize-database data-source="dataSource" 
                        enabled="false"&gt;
          &lt;jdbc:script location="org/springframework/batch/core/schema-oracle10g.sql" /&gt;
  &lt;/jdbc:initialize-database&gt;
  </code></pre>
  
  <ol>
  <li><p>From <a href="http://org/springframework/batch/core/schema-oracle10g.sql" rel="nofollow noreferrer">org/springframework/batch/core/schema-oracle10g.sql</a>, I see that the sql queries are for creating a table. But when the tables are already existing, as i didn't drop them from my previous job. There was no error which said tables already exist. The new job got appended to previous existing table. HOW?</p></li>
  <li><p>How can I force the job to fail when the XD server suddenly goes down?</p></li>
  <li><p>How can I resume the same job that was stopped from the step where it stopped?</p></li>
  </ol>
  
  <p>Thank you :)</p>