Unable to access file since it is locked