Try to make sure file is locked from before it is grabbed until after it is released