Fix #1406: Add TimeoutException and CancellationException