Fix unclosed files [closes #2]