I think leaving the trade is not the solution. After experiencing a loss in trading, as a trader should make it an experience. Losses are always a major problem in trading, so as a trader you have to practice your skills and implement better strategies.
It can be a solution.
If you've been dealing with losses, it's the solution that you have to do. Yeah, a temporary solution that could make you think of a better strategy and approach on the market.
That could be a better solution to give up as of the moment if trading don't work for you.