This can be done using an Observer rule. The performer is the agent, the event is status change to close, action should be set as Assign to agent :Event performing agent.