I just created a new plug-in called cerb5blog.auto_close. It automatically closes tickets that haven't been updated in the last so many day's. It will also add an audit log entry when the ticket it closed if the audit log is enabled.
Links to the project page.
Links to 5.2 and 5.3 releases.