No, that's not how the stock market works.
If a company's project/product were failing and/or losing money, then investors would have priced the loss into the stock price long ago.
If a company announces that it is ending a money-losing effort, then investors will value the company more highly.
In theory, therefore, this announcement should raise the stock price. In practice, who knows.