fix "ignoreFailures=false does not fail build" (issue #13)

StopActionException only causes that action to stop, and continues the build with the next action.
I've changed it to instead throw GradleException, following the lead of the Test task.

http://www.gradle.org/docs/current/javadoc/org/gradle/api/tasks/StopActionException.html