Added line that sends command for the socket on the server side to close when the student closes their window.