Fixed error when plugin is open multiple times with the same key/secret.