Added timeout.

Added an explicit socket timeout.  Otherwise it will just wait for basically forever.