Clear the queue when a node is wiped

Clear the queue when a node is wiped.

I suspect that this is either causing or contributing to #75.