Fixed connection leak. 

Added break statement after the first successful connection that doesn't throw an error. This is tied to Issue #31