In most cases, you can only quit at the end of a school term. Early departures will be ‌case-by-case because of unique circumstances such as illness or administrative concerns.