```scala
val t = Try(client.openConnection(destination))
t match {
  case Success(_) =>
  case Failure(e: Exception) => completionCallback(Some(e))
}
t.toOption
```