Maybe the init code currently in the constructor should be delayed until some short period after plugin startup.