Preventing crash when attempting to remove used nodes.

Not sure how to safely removed nodes for expired commands.