Try...catch in document saved