VM instruction count updated correctly when aborting on errors.