Update job's data on `close` event.

From the discussions we had before we came to the contract that when a pulsar job's process emits a `close` event, the job itself emits only a `close` event. So this PR implements this behaviour and removes a previously existed one when the job also emitted a `change` event besides the `close` event.