modified cmpl_error() routine to enable reporting exit code & signals