Added program to terminate teacher's program