some exception handling for afnetworking