Enhanced shutdown logic, logging, createTaskPaneAsync