Implement retry connection when connection failed
Show sample code on README