Pass t to testConnectionWrapper to allow earlier failure
Thread errors and avoid panic()ing
Merge pull request #6 from tmc/improve-errors

Improve errors