If the "close fd first" workaround doesn't work,