Added task cancellation on close
removed debug
Fixed bug with ActivityOptions