Code updates!

- Catch KeyboardInterrupt (Ctrl-C) and socket.error in main loop
- Stop hardcoding server UID

Signed-off-by: James Lu <glolol1@hotmail.com>
Catch config-is-missing errors.

Signed-off-by: James Lu <glolol1@hotmail.com>