close session

teacher can lock the session, teacher send data to shared state and
student listen to changes