Jurisdiction is retained in the appropriate courts of this state to determine at any time the necessity for continuance of restraint as provided by law.