Replace Closer class to use its close() method