…n and validating the result initialize_state now will return 0 if initialization is failed at early stage. (Maybe we should throw instead, to be more consistent...)