#vulnerable code 
                                @Override
    public final void onEnable() {
        // schedule cleanup of the registry
        Scheduler.runTaskRepeatingAsync(terminableRegistry::cleanup, 600L, 600L).bindWith(terminableRegistry);

        // call subclass
        enable();
    } 
                            #location 4 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Override
    public final void onEnable() {
        // schedule cleanup of the registry
        Scheduler.builder()
                .async()
                .after(10, TimeUnit.SECONDS)
                .every(30, TimeUnit.SECONDS)
                .run(terminableRegistry::cleanup)
                .bindWith(terminableRegistry);

        // call subclass
        enable();
    }