Changed error handling and output
TODO added: must catch WorkerException
Added connection timout error handling