Added ClientException and replaced appropriate UserException and FrameworkException instances with it.
Small changes to ProcessingEngine exception handling logic.