public void endPatchRunStatement(ScriptExecutable pScriptExecutable, boolean pWasSuccess) {    
    try {    
      if(pScriptExecutable instanceof ScriptSQL){
        ScriptSQL lScriptSQL = (ScriptSQL) pScriptExecutable;
      
        Connection lConnection = mDatabaseConnection.getLoggingConnection();    
        CallableStatement lStatement = lConnection.prepareCall(SQLManager.getSQLByName(SQLManager.SQL_FILE_UPDATE_PATCH_RUN_STATEMENT));
        
        lStatement.setString("status", pWasSuccess ? "COMPLETE" : "FAILED");
        lStatement.setInt   ("patch_run_id", mPatchRunId);    
        lStatement.setString("hash", lScriptSQL.getHash());     
        
        lStatement.executeUpdate();
        lStatement.close();
        
        lConnection.commit(); 
      }
    }
    catch (SQLException e) {
      throw new ExFatalError("Failed to end patch run statement", e);
    }    
  }