Catching too many file handler exception