Suppress zmq `error` event
Split common misc function to one file - first step