Tests for close conn on exception