Change behavior of ZMsg when context is closed

Partially addressing issue #349 by adding behavior to ZMsg to return null when context is terminated.