added more cases to logRuntimeErrors(...)