DRYing up process closedown logic