XLCLOUD-1972 Terminating a job is now idempotent.
XLCLOUD-1972 Fixed unit test.