Appium 1.4.16 hangs while taking screenshot on iosdevice

I running java selenium tests on real iphone device using Appium.
My tests are running fine until it executes the command to take screenshot.
i am using the below command to take screenshot.
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrFile, new File(Screenshotpath+“scrrenshot1”.jpg"));

I am not getting any error on appium log. It just hangs.

Specs:

iphone 6plus - version 9.2.1
xcode - 7.2.1
Appium - 1.4.16

Appium log:

info: --> GET /wd/hub/session/0c9fd667-0de3-40d0-9b8d-c61d27c33ac5/screenshot {}
info: [debug] Pushing command to appium work queue: “au.getScreenOrientation()”
info: [debug] Sending command to instruments: au.getScreenOrientation()
info: [debug] [INST] 2016-03-11 19:44:04 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-03-11 19:44:04 +0000 Debug: responding with:
info: [debug] [INST] 2016-03-11 19:44:04 +0000 Debug: Running system command #4: /usr/local/bin/node /Users/ect836/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:""}…
info: <-- GET /wd/hub/session/0c9fd667-0de3-40d0-9b8d-c61d27c33ac5/screenshot - - ms - -

works fine on 1.4.13 for me.

thank you @Venkatesh Looks like I was having some proxy issue. Screenshot works fine in 1.4.16, I am closing this issue