Add deletion for the close node list

This is the feature we discussed on wednesday for deleting dead nodes from the close node list.
Test is included