Check for widget validity before activating tab.
Properly destroy matplotlib figures on formatter deletion.
Support disabling batch definitions.