fixed uncaught exception error with ETIMEDOUT
Merge pull request #16 from sampsasaarela/master

ETIMEDOUT causes uncaught exception error