Fixed that the addon would not unload itself properly.
Extracted local variable.
Upped version to 1.2.