Removed an iOS7 Deprecated function

Minor code change to avoid using CFReadStreamCopyProperty and also fail if an error occurs