fix handling of CompletionException