Destroy connection if identify fails
Add additional logging for invalid state bug
Merge pull request #48 from segmentio/invalid-state

Invalid state debugging