闭门思过

闭门思过 (bì mén sī guò)
shut oneself up and ponder over one's mistakes