Fix up disconnect/shutdown logic. Put cu_ contexts on process stack. Put sys_ exit_code data on process stack.