You could have a R6 class finalizer in order to fix:
Don’t forget to assign: if you simply run fish$new() without assigning it to an object, you will have to either restart the session or kill the Stockfish process manually in order not to have dangling engines eating up your RAM.
You could have a R6 class finalizer in order to fix: