`while (dev.list() > 1) dev.off()` something like this but kinda need to loop it within itself so it prints dev.off until we're back to null device (1) Not sure how to do this though. Put at the end of gbm.auto and also replace the bit in options()?