added setCancelled method to Event