Issue #7563 - Allow mocha timeout to cancel flow.

This pull request is an attempt to address the issues described in https://code.google.com/p/selenium/issues/detail?id=7563