Made shutting down nodes non-blocking.

ptal
Need to take mutex for this whole method.