Removing node on close.