Handle keyboard interrupt in task run

Currently cancelling task does not handle keyboard
interrupts. This fix is to add the exception and
abort the task.

Change-Id: Ia3540c5b396212c0f214d41e51797c584329a482
Closes-Bug:#1326051