check for execution errors