<!-- Describe the issue -->
Trying to run bitcoind node and a testnet node on the same machine, but starting testnet fails when zmq is active
$ bitcoind -testnet
bitcoind: zmq/zmqpublishnotifier.cpp:104: virtual void CZMQAbstractPublishNotifier::Shutdown(): Assertion `psocket' failed.
Aborted (core dumped)
When zmqnotifications is configured only on mainnet, the testnet fails to start (even when zmq is disabled or configured with different port on testnet).
<!--- What behavior did you expect? -->
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
0.16rc4
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
ubuntu 16.04
<!-- Any extra information that might be useful in the debugging process. -->
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->