Do some basic return code evaluation

You should do at least some return code evaluation to make sure that the binary is found and program exited correctly.