Plugin Fixes *Merge*

Made the plugin thread cooperate with LateralGM loading a file from main
args on startup. Please merge when ready.