FIX: release open file descriptors.