Clean up host application code