Assigning ticket to Agent that closes it?

Assigning ticket to Agent that closes it?

I'm trying to clamp down on closed unassigned tickets. Is there a way to automatically assign the ticket to the agent that closed the ticket?