Minor tweaks.
Added threading support to the plugin. Many thanks to user Aragas for help with this code.
Added FinishAction option to plugin.
FinishAction is a non-for-one-time function, better make a entire function or something like that
New Thread closing.