handle timeout while trying to connect