Added message box for errors and preventing config.properties to make true in case of error