Introduce wait method for unregister event

In order to be able to wait for the termination of an instance this
change-set introduces a new Wait method.