Adding timeout to setup script to prevent error

Adding a timeout to setup script to prevent error  when server has the request timeout set too small. This is related to issue #1421