Threads now keep track of their open files