Handle timeouts.