Stoping the service in case of IO exception in the worker thread