added another catch case to logRuntimeErrors(...)