Close socket when connecting to router fails.