wraped stanza writer in try catch