After some discussion with Seth, this should be modified so we capture the command return value on exit.