Fixed crashes cause by CAnim. All callbacks need to be performed at the end in case it's causing the destruction of the CAnim