all of the node's attributes will be lost in the switch.

I think you can drop the `leaving...` part.