handle connection timeouts from node-pg, fixes #1207
changelog
Merge branch 'master' into milestones/2.0.0