Write snapshot as failed on exception