update to unix socket shutdown sequence.

Should fix crashes occuring from unix mode shutdown/cleanup phase.

Waiting for testing result from ebf0.  Don't push it yet.