scjlibs: Refactored terminate() for reset() method in ObjectPool