Fixed: Update global tags after deleting and toggling tasks
Cleanup on end_print