Close output streams in the cairo backend.