Don't leak fd and don't defer removes when unneeded
Don't leak fd and don't defer removes when unneeded

Signed-off-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

stgraber/lxd,lxc/lxd,ollie314/lxd,ericsnowcurrently/lxd,Skarlso/lxd,achanda/lxd,hallyn/lxd,chrisglass/lxd,smoser/lxd,smoser/lxd,ollie314/lxd,stgraber/lxd,benaryorg/lxd,mikemccracken/lxd,smoser/lxd,mjeanson/lxd,erikmack/lxd,pcdummy/lxd,jensg-st/lxd,benaryorg/lxd,lxc/lxd,chrisglass/lxd,georghopp/lxd,hallyn/lxd,Malizor/lxd,Malizor/lxd,lxc/lxd,mikemccracken/lxd,stgraber/lxd,akshaykarle/lxd,erikmack/lxd,dustinkirkland/lxd,jsavikko/lxd,techtonik/lxd,Skarlso/lxd,ollie314/lxd,pcdummy/lxd,mjeanson/lxd,georghopp/lxd,sl1pm4t/lxd,dustinkirkland/lxd,hallyn/lxd,ericsnowcurrently/lxd,rcj4747/lxd,stgraber/lxd,benaryorg/lxd,chrisglass/lxd,rrva/lxd,techtonik/lxd,hallyn/lxd,yura-pakhuchiy/lxd,akshaykarle/lxd,mjeanson/lxd,achanda/lxd,jumpstarter-io/lxd,beni55/lxd,achanda/lxd,rcj4747/lxd,dustinkirkland/lxd,jsavikko/lxd,akshaykarle/lxd,yura-pakhuchiy/lxd,lxc/lxd,beni55/lxd,jumpstarter-io/lxd,hallyn/lxd,pcdummy/lxd,jensg-st/lxd,lxc/lxd,georghopp/lxd,jensg-st/lxd,rrva/lxd,lxc/lxd,yura-pakhuchiy/lxd,Skarlso/lxd,Skarlso/lxd,techtonik/lxd,rrva/lxd,stgraber/lxd,mikemccracken/lxd,Malizor/lxd,jumpstarter-io/lxd,sl1pm4t/lxd,sl1pm4t/lxd,stgraber/lxd,beni55/lxd,erikmack/lxd,atxwebs/lxd,atxwebs/lxd,ericsnowcurrently/lxd,rcj4747/lxd,atxwebs/lxd,hallyn/lxd,jsavikko/lxd,atxwebs/lxd,lxc/lxd,stgraber/lxd