First, the attitude must remain calm by thinking that it will recover.
I'm still learning about trading but remaining calm in terms of failures encountered is the best decision that you have to make as investors.
In times of failures we tend to make rational decisions without even thinking about the consequences ahead because we want to recover what we have lost immediately and without even knowing that it'll make us even prone to many failures. In the end we can only regret, so that's why being calm is very important.
You should always remember that the best time to make a decision is after calming youself. Being calm has its own advantages.