Fixed some warnings
Disabled memory leak detection on windows (enable with DEFINE CRT_ALLOC)
Handle Connection Refused