Improved fd handling within libaxi.