Allow mocha timeout to cancel flow.

Fixes issue 7563.

Signed-off-by: Jason Leyba <jmleyba@gmail.com>