Made shutting down nodes non-blocking.