Sanitize RequestMessage.errorMessage before writing in simulation.log, close #1947