Get a grip of oneself

To take control of one`s feelings.

The man got a grip of himself and calmed down.