fix busy loop in accounting_server