Command cleanup.