It is the right of a witness to be protected from irrelevant, insulting or improper questions, and from harsh or insulting demeanor. The witness is to be detained only so long as the interests of justice require.