[IMP] Improve account_journal_period_close