set userData to null when it is destroyed