Added shutdown hook to Main. Running the shutdown method will terminate all thread started by Hydra. If a thread is hung, Hydra will be killed after 30 seconds
Added an uncaught exception handler that runs the shutdown method if an uncaught exception is thrown by Hydra
Added possibility to throw a ProcessingException after a configurable timeout unless the document was completed.