Handling exceptions better in processing thread. Added verbose mode.