remove close from session definition