Need to fix mythread exit and the runqueue