do not call code-running callbacks if ABORTing; fixes #1191