Delete the io service thread in destructor to avoid resource leaks