solved cleanup bug with handle_expired_items