You could check for the exit code ($?) after execution of the rman command.