Preventing NPE when the project does not have nbproject/project.properties, closing the properties file after it is read.