protected changedState/mode method added which contain a action call to changeState/mode
actor/non actor initialized in ModuleStatemache and setOnError method which contain by actor module to set mode in critical_error and by non actor in error mode