clean up CPlayerEntity