Better error handling if something is wrong with the executable