added error checking for ZMQContext