Destroy the logic bricks attached to an object before attaching new ones