teacher exit mechanism