Fixed iOS connection problems but problems persist

AFCConnnections cannot be closed for some reason without memory problems
and pulling a device out will sometimes cause a crash.