[minor] call webnotes.destroy wherever init or connect is called