sends correct QUIT signal