grip on (oneself)
Control of one's reactions or emotions. After losing her job, Sarah needed to calm down and get a grip on herself in order to drive home safely. You're not going to be able to think clearly until you get a grip on yourself.
*a grip on oneself
Fig. control of one's emotions. (*Typically: get ~ have ~.) Calm down, man! Get a grip on yourself! I encouraged him to get a grip on himself.