finish session controller