WriteAndClose now returns a future, so it's possible to chain on it.