Another attempt at fixing -lpq
Close the progress file earlier