Added disconnect handler for animate example