added call to StopPlugin() if cv_enable == 0

i may have botched this pull request slightly, as for some reason i couldn't merge the upstream changes. so i imported the source and commited that first.