What does getting a grip mean?

What does getting a grip mean?

phrase. If you get a grip on yourself, you make an effort to control or improve your behavior or work.

See also  How do I withdraw from Knights of Columbus?