Get rid of thread block error in File plugin