[OTR] Fix possible memory leak after disabling of the plugin.