Move common finishing tasks to a function.
Move common finishing tasks to a function.

If a service is distributable but being run in a non-distributed manner
that service now needs to call self.finalize() upon completion.

If a service is not distributable there is no changes that need to be made.

cfossace/crits,cdorer/crits,HardlyHaki/crits,seanthegeek/crits,kaoscoach/crits,cdorer/crits,jhuapl-marti/marti,lakiw/cripts,kaoscoach/crits,jinverar/crits,DukeOfHazard/crits,Lambdanaut/crits,cdorer/crits,HardlyHaki/crits,davidhdz/crits,seanthegeek/crits,dreardon/crits,davidhdz/crits,cdorer/crits,jinverar/crits,Magicked/crits,kaoscoach/crits,cfossace/crits,Lambdanaut/crits,DukeOfHazard/crits,korrosivesec/crits,Magicked/crits,kaoscoach/crits,davidhdz/crits,HardlyHaki/crits,korrosivesec/crits,lakiw/cripts,korrosivesec/crits,Magicked/crits,davidhdz/crits,Lambdanaut/crits,Lambdanaut/crits,lakiw/cripts,seanthegeek/crits,davidhdz/crits,0x3a/crits,blaquee/crits,ckane/crits,ckane/crits,dreardon/crits,jhuapl-marti/marti,cfossace/crits,0x3a/crits,jhuapl-marti/marti,seanthegeek/crits,ckane/crits,jinverar/crits,DukeOfHazard/crits,cfossace/crits,Magicked/crits,dreardon/crits,ckane/crits,jhuapl-marti/marti,seanthegeek/crits,lakiw/cripts,jinverar/crits,0x3a/crits,DukeOfHazard/crits,dreardon/crits,blaquee/crits,blaquee/crits,korrosivesec/crits,blaquee/crits,0x3a/crits,HardlyHaki/crits