add DumpOnError flag to runtime