The only sins I can think of where this is possible probably had something else preceding it. For instance, one might stop masturbating before finishing, but there was certainly lust involved up to that point.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.