Fixes cleanup in DPMS and added data product cleanup in some tests.

The coi_pycc builder had several issues with certain tests. This should help alleviate some of the issues by properly cleaning up some resources and processes at the end of tests.