The provisions of sections 54-82c and 54-82d shall not apply to any person adjudged to be mentally ill.