Kanye West threw his microphone in the air and walked off stage during his latest performance.

The rapper was bringing down the curtain at the closing ceremony of the Pan American Games in Toronto, Canada, when there was a “technical issue” which caused his mic to cut out.

Footage posted online shows Kanye throwing the mic into the air before walking off the stage as a crowd of thousands look on.

The Twitter account of the CBC Olympics, official broadcaster of the Games, said Kanye’s mic “cut out in-stadium due to technical issue”.

Prior to the ceremony a petition had been launched online campaigning for organisers to cancel Kanye’s performance, and had gained almost 136,000 signatures.

Toronto Pan Am Games: Don’t have Kanye West perform the closing ceremony for the Toronto Pan American Games

Some Canadian residents were unhappy that the Georgia-born rapper was chosen to close the sporting event, which takes place every four years, as they would prefer to have seen some home-grown talent, such a Drake, perform.