Closed file after reading pot file

Faulty line was introduced in 50a8ab7cd1.