Return the error if exec fails