Progress on network

- Add disconnects
- Add basic thread communication