Execute unregister task synchronously within the task manager