f.fileno() may raise ValueError
Embedded beat now closes all file descriptors after fork