Any court, including a family support magistrate, may punish by fine and imprisonment any person who in its presence behaves contemptuously or in a disorderly manner; but no court or family support magistrate may impose a greater fine than one hundred dollars or a longer term of imprisonment than six months or both.