Jekyll's secret is revealed when he writes a letter to Lanyon and later in Lanyon's letter. After this, Jekyll writes to Utterson to explain him. I think it is not justified as he should have gone to them and explain everything rather then writing letters.