Increase timeout and retries.

With this change we avoid the communication issues on OSX.