Handle timeout.