provide sane cmd exit reporting

Previously the debug messages around command exit were a naked return
code with no reference to what was run. When dealing with very long
running commands (especially those that fail) this means that figuring
out what command was run is possibly very difficult.

Change-Id: I6c44e1106f77fab517fcb0b6d6dd8ed56c853496