code: private void onUncleanExit(final String processId, final int exitCode) {
      this.onResourceStatus(
          ResourceStatusEventImpl.newBuilder()
              .setIdentifier(processId)
              .setState(State.FAILED)
              .setExitCode(exitCode)
              .build()
      );
    }
docs: Inform REEF of an unclean process exit.
  
  @param processId
  @param exitCode