Handle [Error: EBADF, read]
Store string paths in the pendingFiles queue instead of functions