strange style: arguments should be on the same line as the opening brace.

try

```
factory flatMap { _ =>
  didRun = true
  Future.exception(exc)
}
```