Improve error capturing with useExec