If the target creature is an illegal target as Sin's last ability tries to resolve, it won't resolve and none of its effects will happen. Sin will remain in the zone it went to when it died (which is usually the graveyard).