Protect shared connection's error. Refs gh-168
Protect shared connection's error. Refs gh-168

midgardproject/midgard-core,midgardproject/midgard-core,midgardproject/midgard-core,midgardproject/midgard-core