Typhoon Megi leaves a trail of destruction and four people dead in Taiwan before smashing into the Chinese mainland.