cleanup controller.