Make it throw exception when connection timed out.