Smalledits

Two edits that might be wider applied:
In examples, make sure the Xenon object is ALWAYS ended (so wrap it in a try/finally block).
For tracking unique-ids: use AtomicNumber instead of synchronising on the main object.

Btw: for tracking job ids across executions, would it be worthwhile to use UUIDs instead of starting from zero?