[GEOT-4277] Bad '.prj' causes unclosed files