Unreg fd if fd erring

Change-Id: I08b47a9ff613031edc20fb62bf83161f6ae1490c
Signed-off-by: TanelDettenborn <tanel.dettenborn@intel.com>