Use Future.Failed to throw exception