handle failed commands, return actual exit code. fixes #4

ah crap, this was debugging code. sorry about that. 

One moment