Move tryToClose() methods into utility classes
This branch cleans up some redundant tryToClose() methods by moving them into utility classes. No functional changes.
This branch cleans up some redundant tryToClose() methods by moving them into utility classes. No functional changes.