Clean up host logic.