Clean up instance refs