Closing stream on properties, even if the loading failed.