Face the Music

What does the idiom “Face the Music” mean?

Definition:

To accept judgment or punishment

For example:

“We broke the rules for stock trading. It’s time to face the music—they’re going to catch us sooner or later.”