Merge from 4.2-dev for trq-1662: Failed 'gmgr -c' command still returns exit code zero.