Confinement is justified when force is justified by this chapter if the actor takes reasonable measures to terminate the confinement as soon as he knows he safely can unless the person confined has been arrested for an offense.