Implemented uniform exception handling for clojure tasks and java tasks.