MHD instability control, disruptions, and error fields in tokamaks