Thank-you very much sykochica! You sure know a lot about how this all works. Are you part of the developer's team?
I can understand wanting to close out payments if active payment status requires the process to remain in memory. I would have thought that perhaps there is simply a call that asks to modify the data and refresh it either with new activity or to calculate the weekly payment. I'm not a programmer, so have very little knowledge about this sort of thing.