Military courts cease working