Closes #311 - Improve exception handling in main methods of Oracle and W...

...orker

Pull request for #311