openstack: need to put in code to check if token is expired for long-running processes