The state of the mind has nothing to do with external factors. When you invest in your own spiritual development and cultivate peace internally, you will reach a peaceful state of mind that cannot be disturbed by anybody around you.
The world is an undependable entity. You cannot expect the people around you to be nice to you all the time.