Cleanup closure serving logic.