Adding optional errorCb to be executed in case of error instead of the default updateSystemState