A bit more error handling for file access
Seems like we're too stupid to compute the actual number of threads we're creating.