State handlers
In This class, generalize the use of handlers: handleStop recorded as handler for a state change. It would be also interesting to be able to register handlers on Instance. For example to listen to the termination of the instance. That supposes to have callbacks.