Close socket on auth error