Forgot to close file

Fix #160