OS-2400: occassional 'HashUpdate fail' in 'imgadm create ...'

The problem was the usage of the 'exit' event: you can get 'data'
events after that. That resulted in the HashUpdate error... *and*
two `next` calls. Correct answer is the 'close' event, which will
be after all 'data' events.