Added a sleep to help prevent connection errors.

@chriddyp, this might help the connection errors. worth a shot.