Ensure file handle cleanup during image creation
Ensure file handle cleanup during image creation

* When uploading an image to glance from a file,
  perform the close operation from finally block
  to avoid waiting for handle to be closed when
  reference count goes to 0

Change-Id: I5c3ee35b87fa55097c2e847836d5ad1764ae0574

aforalee/RRally,aplanas/rally,vganapath/rally,afaheem88/rally,amit0701/rally,eayunstack/rally,eayunstack/rally,gluke77/rally,shdowofdeath/rally,eayunstack/rally,aforalee/RRally,group-policy/rally,cernops/rally,go-bears/rally,varunarya10/rally,vefimova/rally,redhat-openstack/rally,shdowofdeath/rally,vponomaryov/rally,aplanas/rally,gluke77/rally,go-bears/rally,redhat-openstack/rally,paboldin/rally,pyKun/rally,paboldin/rally,vganapath/rally,cernops/rally,openstack/rally,openstack/rally,vganapath/rally,openstack/rally,pandeyop/rally,varunarya10/rally,vganapath/rally,pyKun/rally,yeming233/rally,eonpatapon/rally,eonpatapon/rally,paboldin/rally,gluke77/rally,amit0701/rally,gluke77/rally,vefimova/rally,group-policy/rally,group-policy/rally,openstack/rally,afaheem88/rally,pandeyop/rally,yeming233/rally,vponomaryov/rally,amit0701/rally