Fix reset for aborts

This change fixes reset for aborts and fixes start/abort
functionality. It also makes some slight changes to where the repo
object is obtained.