Fix race condition that could kill connections before they
were initiated
Merge pull request #155 from yawkat/killed-connections-fix

Fix race condition that could kill connections before they were initiated