Fixed string comp and accidentally closing socket