properly handle failed put requests