added failed to connect callback