closes #44 potential connection leak during connection creation in some failure scenarios.