fixed uncaught exception error with ETIMEDOUT