Avoid situation where data isn't saved on plugin disable.