Fixed bug whe closing files in FileWritersPool