When terminating tor for MacOS check first if process handle is valid
When terminating tor for MacOS check first if process handle is valid

With new MacOS or Boost version appears that Tor can be already terminated when wallet is shutdown.
spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre