add write decorator to remove_old_aers (bug 980336)