That feeling is strange because technically you had a chance to go home winning, but because you did not stop, it still feels like a loss.
That feeling is driven from the psychological fact that the money in your account as bettor is your own and it's does not matter whether you have withdrawn it or not because you will always have the right to decide what to do with it because it is on your custody.
The fund staked on your running bet is at s 50/50 if it will come back to you or not. That is if you loose or win determines.
If you have used $10 dollar to accumulate $1000 on your winning, the total amount is automatically yours and you have the chance to walk away with it all and when you have lost some or all, you will still assume you lost such total amount of money because you formally had the chance to walk away with it and you will feel the pain of the lost.
But in the reality, you lost only the amount you deposited if you later lost all.