Check for statement close errors in execute