Fixed memory leak in Console UI plugin.