Fix fileChannel not closed, preventing delete to occur correctly