Added a wrapper to catch exceptions.
Upgraded to Gradle version 2.0.