Reorder client disconnect code in Node server.  Refs #2978