Enhancement: use exit code from run()

Necessary to be able to tell if command ran successfully or not.