Buffer logs until connection has been made
Merge pull request #221 from FokkeZB/patch-15

Closes #220