using a Try around with write command in svingest