Call `abort` in context of an object. Closes #803