You can check the return value of system, but that's the (mangled) return value from tee, not from $cmd.
If you want to process the output (rather then the return value), either use qx{$cmd | tee -a $logFile} or open to open a pipe and read from that pipe.