Modified server to send 'exit' event when user stops interaction