Handle quit command on web-ui.