Fix fileChannel not closed, preventing delete to occur correctly (see
#2142)