Added error handling for exceptions thrown in worker threads. Also fixed
problems with lingering DB connections (and threads) by switching the
maven commands from exec:java to exec:exec.