Shemaiah was facing judgment from the Lord. He had falsely prophesied unto the Israelite people causing them to trust a lie. 

His punishment: solitude.

Christian, fellowship with one another is good for us. It is a privilege that should be enjoyed, not neglected