Task cleanup.