Closes #57 open files with wrong extension