added possibilities to retry connection before the retry timer ticks