cleanup encounters controller.