Handle timeout problems and log error