Fixed a bug that caused an application crash due to incorrect dereferencing of libuv network handles. Also passed the first check for memory leaks \o/