add error handler when call openstack api