cancel

Cancel taking snapshot if it was running.

fun cancel()