fixed log spamming EBADF and EDOTDOT