stopping sending messages when quit_status_ != ok