Add 1s timeout for initial connection

This prevents hanging for unreasonable amounts of time when
a connection cannot be made to the host.