Removed Generated/ files from Git
Cleaned up an unused #define
Fixed a logic error in the connected socket cleanup