Correctly close pipe, preliminary preparation for 7-day forecasts