option -stop to stop accepting new tasks