Change return value of Shell::RunUntilCompletion to include terminiation status.

Also fixes error path of Shell::RunUntilCompletion.
dedupv1d_test now uses Shell::RunUntilCompletion