From #17, it was pointed out that there are a bunch of attempts to close(-1).
I think this is a cleanup thread trying to garbage collect destroyed tasks, it should be checking if the file descriptor is still valid. This could mask a real bug later on, so it makes sense to avoid it if possible.