Added an handler class which can be used to implement custom state handling of a model run