Clean up controller.