In order to close the salaries account you need to credit the account for what the balance is, and then debit retained earnings for the same amount. This will bring the salaries account to zero for the next account cycle and record the expense in retained earnings.
The entry will be a debit to Retained Earnings for $8,000 and a credit to Salaries Expense for $8,000.