Fixed a bug on initialization; the networking thread could start before the derived NetBase constructors did, causing a segfaul. Also renamed the error packet flags from `ERROR` to `ERROR_PKT`.