invoke error callback on last failed connection attempt

Change-Id: Ica9b1376406ba000cacb2afe9af210fe7f6e6554
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>