Sample code for a blog on cancelling Azure worker roles