gajim: correctly close file after it's opened