You can cancel your subscription at any time by clicking on the billing icon (look for the '$' symbol in the upper-right corner of your teacher dashboard).  On the following page you can click the "Cancel Account" button which will also cancel student accounts and restrict their access as well.