Disruption related research with the JOREK code