Following @RonnyPfannschmidt suggestion in #64, encapsulating the references and objects used for process resource clean-up in XProcess seems like a natural follow up to improve the PR and make the code readable and less error-prone when compared to the current approach of separate yet logically/semantically related lists.