What does ‘keep your cool’ mean?

( vp ) Remain calm. He kept his cool when his house burned down.