fixed method order

error_out was used before it was defined in case of an error with the propertiesfile.