Fixes regression: sets the native socket pointer equal to 0 when we close the native socket.