cpp: rpc: removing log files only on successful test