Added MAGIC_CANCEL_TYPE9 (note: MAGIC_CANCEL_TYPE6 is only for the client, it doesn't work like type 9).